package crmsystem.com.service.impl;

import crmsystem.com.utils.Query;
import crmsystem.com.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import crmsystem.com.dao.ServicedataDao;
import crmsystem.com.entity.ServicedataEntity;
import crmsystem.com.service.ServicedataService;


@Service("servicedataService")
public class ServicedataServiceImpl extends ServiceImpl<ServicedataDao, ServicedataEntity> implements ServicedataService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ServicedataEntity> page = this.page(
                new Query<ServicedataEntity>().getPage(params),
                new QueryWrapper<ServicedataEntity>()
        );

        return new PageUtils(page);
    }

}